#ifndef QMYLABEL_H
#define QMYLABEL_H

#include "../../lib/shared/qobjecthost.h"

#include <QLabel>

#include <QLCDNumber>

class QLabelHost: public QObjectHost
{
    Q_OBJECT
public:
    QLabelHost(QWidget* wid);
public slots:
    QString text();
signals:
    void    setText(const QString& text);
};

class QMyLabel : public QLabel
{
    Q_OBJECT
public:
    QMyLabel(QWidget* parent=0);
public slots:
    void    updateProperty(const QString & name);
    void    updatePropertyAttribute();
    void    initProperty();
signals:
    void    zValueChanged();
protected:
    QObjectHost *m_host;
};

class QLCDNumberHost: public QObjectHost
{
    Q_OBJECT
public:
    QLCDNumberHost(QWidget* wid);
public slots:
    double  value();
signals:
    void	display ( const QString & s );
    void	display ( double num );
    void	display ( int num );
};

class QMyLCDNumber : public QLCDNumber
{
    Q_OBJECT
public:
    QMyLCDNumber(QWidget* parent=0);
public slots:
    void    updateProperty(const QString & name);
    void    updatePropertyAttribute();
    void    initProperty();
signals:
    void    zValueChanged();
protected:
    QObjectHost *m_host;
};
#endif // QMYLABEL_H
